﻿using System;
using System.Collections.Generic;
using System.Linq;
using Dapper.Contrib.Extensions;

namespace WoChu.WMS.Entity
{
    /// <summary>
    /// 订单的关联视频
    /// </summary>
    [Table("SaleAPPVideo")]        
    public partial class SaleAPPVideo
    {
        public SaleAPPVideo() 
        {}

        #region 属性
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        public int ID { get; set; }
        /// <summary>
        /// 订单号
        /// </summary>
        public string SHEETID { get; set; }

        /// <summary>
        /// 文件名
        /// </summary>
        public string FILENAME { get; set; }

        /// <summary>
        /// 类别：1:审核
        /// </summary>
        public int TYPE { get; set; }

        /// <summary>
        /// 子类别：若Type=1 ，则1:普通订单  2：赠品订单
        /// </summary>
        public int SUBTYPE { get; set; }

        /// <summary>
        /// 时间长度，单位:秒
        /// </summary>
        public int DURATION { get; set; }

        /// <summary>
        /// 创建用户
        /// </summary>
        public string CREATEUSER { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CREATETIME { get; set; }
        #endregion
    }
    
    /// <summary>
    ///  扩展属性
    /// </summary>
    public partial class SaleAPPVideo
    {
        /// <summary>
        /// 审核位
        /// </summary>
        public string CheckLocation { get; set; }

        public DateTime StartDate { get; set; }
        public DateTime EndDate { get; set; }

        public VideoState State { get; set; }
    }

    public enum VideoState
    {
        未下载=0,
        下载中=1,
        完成=2,        
    }
    /// <summary>
    /// 视频业务分类
    /// </summary>
    public enum VideoType
    {
        审核=1
    }

    public enum DurationType
    {
    #if DEBUG
       // one = 20,
    #endif
        two = 120,
        three=180,
        //five=300,
        //ten=600
    }
}
